public class recursionDemo {
    public static void main(String[] args) {
        //阶乘 1*2*3*4*5....*n
        System.out.println(  f(4));;
    }


    public static int f(int n){
        System.out.println("==============================");
        if(n==1){
            return 1;
        }else{
            System.out.println((n-1)+"*"+n);
            return  f(n-1)*n;
        }


    }
}
